package com.entmanage.base.oa.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.entmanage.common.annotation.Excel;
import com.entmanage.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * OA报销申请-费用明细对象 oa_reimbursement_detail
 *
 * @author lsq
 * @date 2025-09-25
 */
public class OaReimbursementDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 外键，关联报销主表ID */
    @Excel(name = "外键，关联报销主表ID")
    private Long applyId;

    /** 费用类型，如：交通费、餐饮费、住宿费等 */
    @Excel(name = "费用类型，如：交通费、餐饮费、住宿费等")
    private String expenseType;

    /** 费用发生时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "费用发生时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date occurrenceDate;

    /** 费用金额 */
    @Excel(name = "费用金额")
    private BigDecimal amount;

    /** 费用说明 */
    @Excel(name = "费用说明")
    private String description;

    /** 附件URL（可多个，逗号分隔） */
    @Excel(name = "附件URL", readConverterExp = "可=多个，逗号分隔")
    private String attachmentUrl;

    /** 删除标记：0-正常，1-删除 */
    private String delFlag;

    /** 申请人ID */
    @Excel(name = "申请人ID")
    private Long userId;

    /** 申请人部门ID */
    @Excel(name = "申请人部门ID")
    private Long deptId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setApplyId(Long applyId)
    {
        this.applyId = applyId;
    }

    public Long getApplyId()
    {
        return applyId;
    }
    public void setExpenseType(String expenseType)
    {
        this.expenseType = expenseType;
    }

    public String getExpenseType()
    {
        return expenseType;
    }
    public void setOccurrenceDate(Date occurrenceDate)
    {
        this.occurrenceDate = occurrenceDate;
    }

    public Date getOccurrenceDate()
    {
        return occurrenceDate;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setAttachmentUrl(String attachmentUrl)
    {
        this.attachmentUrl = attachmentUrl;
    }

    public String getAttachmentUrl()
    {
        return attachmentUrl;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setDeptId(Long deptId)
    {
        this.deptId = deptId;
    }

    public Long getDeptId()
    {
        return deptId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("applyId", getApplyId())
            .append("expenseType", getExpenseType())
            .append("occurrenceDate", getOccurrenceDate())
            .append("amount", getAmount())
            .append("description", getDescription())
            .append("attachmentUrl", getAttachmentUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .toString();
    }
}
